package com.qf.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//======================依靠角色来把用户和菜单表联系起来！！！
//角色相对于用户来说是一方（在这里规定一个用户对应一个角色）！！!
//角色和菜单栏为多对多的关系，依靠第三张表来维持着关系

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {

    private List<Employee> employeeList;

    private List<Menu> menus;

    private Integer roleid;

    private String rname;

    private Integer deptid;

    public List<Employee> getEmployeeList() {
        return employeeList;
    }

    public void setEmployeeList(List<Employee> employeeList) {
        this.employeeList = employeeList;
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname == null ? null : rname.trim();
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }
}